#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ----------------------------------------------------------
# -- 
# -- 
# ****************************
# Author: lmay.Zhou
# Blog: www.lmaye.com
# Date: 
# ----------------------------------------------------------

import requests
from requests import ConnectTimeout, Timeout

# from files.test import Test
# from files.tools import FileHandle

# t = Test();
# rs = t.socketClient();
# f = FileHandle();
# f.writeFile(rs);

status = True
try:
    requests.get("http://www.lmaye.com:8080/xxsystem", timeout=0.1)
except ConnectTimeout as e:
    print("连接失败");
    status = False;
except Timeout:
    print("连接超时");
    status = False;

print("----------------------------------------");
print(status);
